﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CrystalReportsManagementSystem.Common
{
    public static class MessageBox
    {
        public static string Show(string message)
        {
            return "<script>alert('" + message + "')</script>";
        }
        public static void Show(System.Web.UI.Page page, string msg)
        {
            page.ClientScript.RegisterStartupScript(page.GetType(), "ajaxjs", string.Format("alert('{0}！')", msg), true);
        }
    }
}